<template>
	<div>
		<div>comAdd5</div>
		<button @click="addNum">add</button>
    <button @click="minusNum">minus</button>
	</div>
</template>
<script type="text/javascript">
	export default {
		name:'comAdd5',
		data(){
			return {
				num:5
			}
		},
		methods:{
	    addNum(){
        this.$store.commit('increment',this.num)
			},
			minusNum(){
        this.$store.commit('decrement',this.num)
			}
		}
	}
</script>